import request from "@/utils/request";

// 查询列表
export function listOrderSave(query) {
  return request({
    url: "/api/orderSave/list",
    method: "get",
    params: query,
  });
}
// 修改
export function addOrderSave(data) {
    return request({
      url: "/api/orderSave/add",
      method: "post",
      data: data,
    });
  }

// 修改
export function updateOrderSave(data) {
  return request({
    url: "/api/orderSave/update",
    method: "post",
    data: data,
  });
}
// 审批
export function approveOrderSave(data) {
  return request({
    url: "/api/orderSave/apply",
    method: "post",
    data: data,
  });
}

// 删除
export function delOrderSave(data) {
  return request({
    url: "/api/orderSave/del",
    method: "post",
    data: data,
  });
}